package com.ygqh.baby.po;

import com.ygqh.baby.utils.DateConvertUtils;

import java.math.BigDecimal;
import java.util.Date;

public class BiOrderDay {
    private Long id;

    private Date orderDate;

    private Long totalOrderCount;

    private BigDecimal totalOrderPrice;

    private Long totalUserCount;

    private Long payOrderCount;

    private BigDecimal payOrderPrice;

    private Long payUserCount;

    private BigDecimal totalCostPrice;

    private BigDecimal grossMargin;

    private String shopType;

    private String shopName;

    private String warehouseNo;

    private Date createTime;

    private Date updateTime;

    // =========================

    private Long newUserCount;
    private Long scanUserCount;


    public String getWarehouseNo() {
        return warehouseNo;
    }

    public void setWarehouseNo(String warehouseNo) {
        this.warehouseNo = warehouseNo;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getNewUserCount() {
        return newUserCount;
    }

    public void setNewUserCount(Long newUserCount) {
        this.newUserCount = newUserCount;
    }

    public Long getScanUserCount() {
        return scanUserCount;
    }

    public void setScanUserCount(Long scanUserCount) {
        this.scanUserCount = scanUserCount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Long getTotalOrderCount() {
        return totalOrderCount;
    }

    public void setTotalOrderCount(Long totalOrderCount) {
        this.totalOrderCount = totalOrderCount;
    }

    public BigDecimal getTotalOrderPrice() {
        return totalOrderPrice;
    }

    public void setTotalOrderPrice(BigDecimal totalOrderPrice) {
        this.totalOrderPrice = totalOrderPrice;
    }

    public Long getTotalUserCount() {
        return totalUserCount;
    }

    public void setTotalUserCount(Long totalUserCount) {
        this.totalUserCount = totalUserCount;
    }

    public Long getPayOrderCount() {
        return payOrderCount;
    }

    public void setPayOrderCount(Long payOrderCount) {
        this.payOrderCount = payOrderCount;
    }

    public BigDecimal getPayOrderPrice() {
        return payOrderPrice;
    }

    public void setPayOrderPrice(BigDecimal payOrderPrice) {
        this.payOrderPrice = payOrderPrice;
    }

    public Long getPayUserCount() {
        return payUserCount;
    }

    public void setPayUserCount(Long payUserCount) {
        this.payUserCount = payUserCount;
    }

    public BigDecimal getTotalCostPrice() {
        return totalCostPrice;
    }

    public void setTotalCostPrice(BigDecimal totalCostPrice) {
        this.totalCostPrice = totalCostPrice;
    }

    public BigDecimal getGrossMargin() {
        return grossMargin;
    }

    public void setGrossMargin(BigDecimal grossMargin) {
        this.grossMargin = grossMargin;
    }

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType == null ? null : shopType.trim();
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName == null ? null : shopName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getKey() {
        if (shopType == null || orderDate == null) {
            return "";
        }
        return shopType + "-" + warehouseNo + "-" + DateConvertUtils.format(orderDate);
    }

    @Override
    public String toString() {
        return "BiOrderDay{" +
                "id=" + id +
                ", orderDate=" + orderDate +
                ", totalOrderCount=" + totalOrderCount +
                ", totalOrderPrice=" + totalOrderPrice +
                ", totalUserCount=" + totalUserCount +
                ", payOrderCount=" + payOrderCount +
                ", payOrderPrice=" + payOrderPrice +
                ", payUserCount=" + payUserCount +
                ", totalCostPrice=" + totalCostPrice +
                ", grossMargin=" + grossMargin +
                ", shopType='" + shopType + '\'' +
                ", shopName='" + shopName + '\'' +
                ", createTime=" + createTime +
                ", newUserCount=" + newUserCount +
                ", scanUserCount=" + scanUserCount +
                '}';
    }
}